<%@ page import="org.icress.fusion.moc.Tg" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'moc.tg.label', default: 'Tg')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            
            <div class="dialog">
            	<g:set var="tc_id" scope="page" >${(tgInstance?.tc?.id==null)?params['tc_id']:tgInstance?.tc?.id}</g:set>
	        	<g:set var="tcInstance" value="${org.icress.fusion.moc.Tc.get(tc_id.toLong())}" scope="page" />
	            <g:render template="/moc/tc/showTemplate" model="[tcInstance:tcInstance]" />            	
            </div>
                        
            <div class="dialog">
                <g:render template="/moc/tg/showTemplate" model="[tgInstance:tgInstance]" />
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${tgInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
